package com.cxm.weilai.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: weilai-cloud
 * @description: 初始化
 * @author: ChenMan
 * @create: 2019-03-26 15:36
 */

@Api(value = "/init", tags = "init接口模块")
@RestController
@RequestMapping(value = "init", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class InitController {

    @Value("${server.port}")
    private String port;

    @ApiOperation(value = "初始化信息", notes = "初始化信息")
    @GetMapping(value = "init")
    public List findUserInfoList() {
        List list = new ArrayList();
        list.add("alex");
        list.add("lilei");
        list.add(port);
        return list;
    }
}
